package com.qf.xiaomi.utils;

import com.qf.xiaomi.service.impl.userServiceImpl;
import com.qf.xiaomi.service.userService;

public class StringUtils {
    public static boolean isEmpty(String date){
        return date==null;
    }
    public static boolean isLenghtEnough(String date,int minLenght,int maxLenght){
        return date.length()<minLenght||date.length()>maxLenght;
    }
    public static boolean isexist(int  id){
        userService service = new userServiceImpl();

        return service.selectUid(id);
    }
}
